public class ArrayOddDemo {
    public static void main(String[] args) {
        int[] arr=new int[]{1,2,6,8,9,5};

        for (int i=0;i< arr.length;i++){
            if (arr[i]%2==0){
                System.out.println(arr[i]+"为偶数");
            }else {
                System.out.println(arr[i]+"为奇数");

            }
        }
    }
}
